package com.ruoyi.wbgame.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 选项对象 wb_option
 * 
 * @author guguofu
 * @date 2021-04-19
 */
public class WbOption extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 选项id */
    private Long optionId;

    /** 选项内容 */
    @Excel(name = "选项内容")
    private String optionContent;

    /** 问题id */
    @Excel(name = "问题id")
    private Long questionId;

    /** 选项的正确性 */
    @Excel(name = "选项的正确性")
    private Integer isRight;

    public void setOptionId(Long optionId) 
    {
        this.optionId = optionId;
    }

    public Long getOptionId() 
    {
        return optionId;
    }
    public void setOptionContent(String optionContent) 
    {
        this.optionContent = optionContent;
    }

    public String getOptionContent() 
    {
        return optionContent;
    }
    public void setQuestionId(Long questionId) 
    {
        this.questionId = questionId;
    }

    public Long getQuestionId() 
    {
        return questionId;
    }
    public void setIsRight(Integer isRight) 
    {
        this.isRight = isRight;
    }

    public Integer getIsRight() 
    {
        return isRight;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("optionId", getOptionId())
            .append("optionContent", getOptionContent())
            .append("questionId", getQuestionId())
            .append("isRight", getIsRight())
            .toString();
    }
}
